package com.attilax.io;

import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;

public class abc {
	
	public static void main(String[] args) throws UnsupportedEncodingException {
		String s="The.Grand.Budapest.Hotel.2014.1080p.WEB-DL.DD5.1.H264-RARBG";
		System.out.println(s.getBytes().length);
		System.out.println(s.length());
		System.out.println(s.contains("."));
		
		
		 String mkv="z:\\剧情类\\白日梦想家 豆瓣8.2";
		int a=mkv.indexOf("\\",3);
		System.out.println( mkv.substring(3, a));
		System.out.println(URLEncoder.encode("蝙蝠侠-黑暗骑士.jpg", "utf-8"));
		//if(!fileName.contains("."))
		//	return fileName;
	}

}
